package com.academic_system.model;


import com.academic_system.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * @author Y-Rainson
 * @create 2018-03-31 23:06
 **/


public class Teacher {
    private int teInfoId;
    private int teNum;
    private String teName;
    private int teSex;
    private String teIdcardNum;
    @JsonSerialize(using = DateJsonType.class)
    private Date teBirthday;
    private String teNation;
    private String tePoli;
    private String tePhone;
    private String teNativeplace;
    private String tePassword;


    public int getTeInfoId() {
        return teInfoId;
    }

    public void setTeInfoId(int teInfoId) {
        this.teInfoId = teInfoId;
    }


    public int getTeNum() {
        return teNum;
    }

    public void setTeNum(int teNum) {
        this.teNum = teNum;
    }


    public String getTeName() {
        return teName;
    }

    public void setTeName(String teName) {
        this.teName = teName;
    }


    public int getTeSex() {
        return teSex;
    }

    public void setTeSex(int teSex) {
        this.teSex = teSex;
    }

    public String getTeIdcardNum() {
        return teIdcardNum;
    }

    public void setTeIdcardNum(String teIdcardNum) {
        this.teIdcardNum = teIdcardNum;
    }


    public Date getTeBirthday() {
        return teBirthday;
    }

    public void setTeBirthday(Date teBirthday) {
        this.teBirthday = teBirthday;
    }


    public String getTeNation() {
        return teNation;
    }

    public void setTeNation(String teNation) {
        this.teNation = teNation;
    }


    public String getTePoli() {
        return tePoli;
    }

    public void setTePoli(String tePoli) {
        this.tePoli = tePoli;
    }


    public String getTePhone() {
        return tePhone;
    }

    public void setTePhone(String tePhone) {
        this.tePhone = tePhone;
    }


    public String getTeNativeplace() {
        return teNativeplace;
    }

    public void setTeNativeplace(String teNativeplace) {
        this.teNativeplace = teNativeplace;
    }


    public String getTePassword() {
        return tePassword;
    }

    public void setTePassword(String tePassword) {
        this.tePassword = tePassword;
    }


    @Override
    public String toString() {
        return "Teacher{" +
                "teInfoId=" + teInfoId +
                ", teNum=" + teNum +
                ", teName='" + teName + '\'' +
                ", teSex=" + teSex +
                ", teIdcardNum='" + teIdcardNum + '\'' +
                ", teBirthday=" + teBirthday +
                ", teNation='" + teNation + '\'' +
                ", tePoli='" + tePoli + '\'' +
                ", tePhone='" + tePhone + '\'' +
                ", teNativeplace='" + teNativeplace + '\'' +
                ", tePassword='" + tePassword + '\'' +
                '}';
    }
}
